home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Clickx 115
/
Clickx 115.iso
/
software
/
tools
/
windows
/
tails-i386-0.16.iso
/
live
/
filesystem.squashfs
/
usr
/
share
/
pyshared
/
rdflib
/
FileInputSource.py
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Python Source
|
2009-03-04
|
324 b
|
12 lines
from xml.sax.xmlreader import InputSource
class FileInputSource(InputSource, object):
def __init__(self, file):
super(FileInputSource, self).__init__(`file`)
self.file = file
self.setByteStream(file)
# TODO: self.setEncoding(encoding)
def __repr__(self):
return `self.file`